package com.uinnova.product.eam.vo;

import com.binary.framework.bean.annotation.Comment;
import com.uinnova.product.eam.model.cj.vo.BindAssetVo;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class AssertCheckoutRes {

    @Comment("检出信息")
    private CheckInfo checkInfo;
    @Comment("检出类型")
    private Integer checkType;
    @Comment("检出位置是否可以编辑")
    private Boolean dirEdit;

    @Comment("方案模板")
    private Template template;
    @Comment("关联资产")
    private Map<String, String> asset;

    @Data
    public static class CheckInfo {
        @Comment("视图名称")
        private String diagramName;
        @Comment("我的空间目录id")
        private Long dirId;
        @Comment("路径")
        private String dirName;
    }

    @Data
    public static class Template {
        @Comment("模板主键")
        private Long id;
        @Comment("模板名称")
        private String templateName;
        @Comment("模板绑定的资产List")
        private List<BindAssetVo> bindAssetList;
    }
}
